package com.ruyuan.eshop.order.service;

import com.ruyuan.eshop.order.domain.dto.CheckLackDTO;
import com.ruyuan.eshop.order.domain.dto.LackDTO;
import com.ruyuan.eshop.order.domain.request.LackRequest;
import com.ruyuan.eshop.order.exception.OrderBizException;

/**
 * @author lxg
 * @Description:
 * @date 2022/4/1615:35
 */
public interface OrderLackService {
    /**
     * 校验入参
     * @param request
     */
    CheckLackDTO checkRequest(LackRequest request) throws OrderBizException;

    /**
     * 具体的缺品处理
     * @param request
     * @param checkLackDTO
     * @return
     */
    LackDTO executeLackRequest(LackRequest request, CheckLackDTO checkLackDTO);

}
